updating oE smaller_of
smaller_of
include math.e namespace math public function smaller_of(object objA, object objB)
returns the smaller of two objects.
Parameters:
- objA : an object.
- objB : an object.
Returns:
Whichever of objA and objB is the smaller one.
Comments:
Introduced in v4.0.3
Example 1:
? smaller_of(10, 15.4) -- returns 10 ? smaller_of("cat", "dog") -- returns "cat" ? smaller_of("apple", "apes") -- returns "apes" ? smaller_of(10, 10) -- returns 10
See Also:
Not Categorized, Please Help
|